/*
 * @Author:
 * @Date: 2021-12-17 14:25:18
 * @LastEditTime: 2021-12-19 20:52:30
 * @FilePath: /vue3-vite2-ts-antdv/src/types/config.d.ts
 */

export type LocaleType = 'zh_CN' | 'en' | 'ru' | 'ja' | 'ko'

export interface HeaderSetting {
  bgColor: string
  fixed: boolean
  show: boolean
  // Turn on full screen
  showFullScreen: boolean
  // Whether to show the lock screen
  useLockPage: boolean
  // Show document button
  showDoc: boolean
  // Show message center button
  showNotice: boolean
  showSearch: boolean
}

export interface LocaleSetting {
  showPicker: boolean
  // Current language
  locale: LocaleType
  // default language
  fallback: LocaleType
  // available Locales
  availableLocales: LocaleType[]
}

export interface TransitionSetting {
  //  Whether to open the page switching animation
  enable: boolean
  openPageLoading: boolean
  // Whether to open the top progress bar
  openNProgress: boolean
}


export interface GlobConfig {
  // Site title
  title: string
  // Service interface url
  apiUrl: string
  // Upload url
  uploadUrl?: string
  //  Service interface url prefix
  urlPrefix?: string
  // Project abbreviation
  shortName: string
}
export interface GlobEnvConfig {
  // Site title
  VITE_GLOB_APP_TITLE: string
  // Service interface url
  VITE_GLOB_API_URL: string
  // Service interface url prefix
  VITE_GLOB_API_URL_PREFIX?: string
  // Project abbreviation
  VITE_GLOB_APP_SHORT_NAME: string
  // Upload url
  VITE_GLOB_UPLOAD_URL?: string
}
